import axios from 'axios'
import apiUrls from 'common/api-urls'

export function uploadFile(data) {
  const formData = new FormData()
  formData.append('files', data.file.raw)
  if (data.busiType) {
    formData.append('busiType', data.busiType)
  }
  return axios.post(apiUrls.uploadFile, formData)
}
